Optimal. Leaf size=127 \[ -\frac {37\ 2^{5/6} a \cos (c+d x) \, _2F_1\left (-\frac {5}{6},\frac {1}{2};\frac {3}{2};\frac {1}{2} (1-\sin (c+d x))\right ) \sqrt [3]{a+a \sin (c+d x)}}{35 d (1+\sin (c+d x))^{5/6}}+\frac {9 \cos (c+d x) (a+a \sin (c+d x))^{4/3}}{70 d}-\frac {3 \cos (c+d x) (a+a \sin (c+d x))^{7/3}}{10 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2838, 2830,
2731, 2730} \begin {gather*} -\frac {37\ 2^{5/6} a \cos (c+d x) \sqrt [3]{a \sin (c+d x)+a} \, _2F_1\left (-\frac {5}{6},\frac {1}{2};\frac {3}{2};\frac {1}{2} (1-\sin (c+d x))\right )}{35 d (\sin (c+d x)+1)^{5/6}}-\frac {3 \cos (c+d x) (a \sin (c+d x)+a)^{7/3}}{10 a d}+\frac {9 \cos (c+d x) (a \sin (c+d x)+a)^{4/3}}{70 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2730
Rule 2731
Rule 2830
Rule 2838
Rubi steps
\begin {align*} \int \sin ^2(c+d x) (a+a \sin (c+d x))^{4/3} \, dx &=-\frac {3 \cos (c+d x) (a+a \sin (c+d x))^{7/3}}{10 a d}+\frac {3 \int \left (\frac {7 a}{3}-a \sin (c+d x)\right ) (a+a \sin (c+d x))^{4/3} \, dx}{10 a}\\ &=\frac {9 \cos (c+d x) (a+a \sin (c+d x))^{4/3}}{70 d}-\frac {3 \cos (c+d x) (a+a \sin (c+d x))^{7/3}}{10 a d}+\frac {37}{70} \int (a+a \sin (c+d x))^{4/3} \, dx\\ &=\frac {9 \cos (c+d x) (a+a \sin (c+d x))^{4/3}}{70 d}-\frac {3 \cos (c+d x) (a+a \sin (c+d x))^{7/3}}{10 a d}+\frac {\left (37 a \sqrt [3]{a+a \sin (c+d x)}\right ) \int (1+\sin (c+d x))^{4/3} \, dx}{70 \sqrt [3]{1+\sin (c+d x)}}\\ &=-\frac {37\ 2^{5/6} a \cos (c+d x) \, _2F_1\left (-\frac {5}{6},\frac {1}{2};\frac {3}{2};\frac {1}{2} (1-\sin (c+d x))\right ) \sqrt [3]{a+a \sin (c+d x)}}{35 d (1+\sin (c+d x))^{5/6}}+\frac {9 \cos (c+d x) (a+a \sin (c+d x))^{4/3}}{70 d}-\frac {3 \cos (c+d x) (a+a \sin (c+d x))^{7/3}}{10 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 9.15, size = 363, normalized size = 2.86 \begin {gather*} \frac {(a (1+\sin (c+d x)))^{4/3} \left (\frac {111 (-1)^{3/4} e^{-\frac {3}{2} i (c+d x)} \left (i+e^{i (c+d x)}\right ) \left (20 e^{i (c+d x)} \sqrt {\cos ^2\left (\frac {1}{4} (2 c+\pi +2 d x)\right )} \, _2F_1\left (-\frac {1}{3},\frac {1}{3};\frac {2}{3};-i e^{-i (c+d x)}\right )-2 \left (1+i e^{-i (c+d x)}\right )^{2/3} \left (1+e^{2 i (c+d x)}\right ) \, _2F_1\left (\frac {1}{2},\frac {5}{6};\frac {11}{6};\sin ^2\left (\frac {1}{4} (2 c+\pi +2 d x)\right )\right )+5 i \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};-i e^{-i (c+d x)}\right ) \sqrt {2-2 \sin (c+d x)}\right )}{20 \sqrt {2} \left (1+i e^{-i (c+d x)}\right )^{2/3} \sqrt {i e^{-i (c+d x)} \left (-i+e^{i (c+d x)}\right )^2}}-\frac {3}{10} \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) (-185+60 \cos (c+d x)-7 \cos (3 (c+d x))+22 \sin (2 (c+d x)))\right )}{28 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.35, size = 0, normalized size = 0.00 \[\int \left (\sin ^{2}\left (d x +c \right )\right ) \left (a +a \sin \left (d x +c \right )\right )^{\frac {4}{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (c + d x \right )} + 1\right )\right )^{\frac {4}{3}} \sin ^{2}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\sin \left (c+d\,x\right )}^2\,{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{4/3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________